export default {
    data: {
        modeFlag: "half",
        typeFlag:"minibar",
        modes:['mini','half','full'],
        modeIndex:0,
        types:['minibar','foldable','temporary'],
        typeIndex:0,
    },
    showPanel(e) {
//        提前关闭一波
        this.$element('simplepanel').close()
        this.$element('simplepanel').show()
    },
    closePanel(e) {
        this.$element('simplepanel').close()
    },
    changeMode(e) {
        this.modeFlag = e.mode
    },
    changeType(e){
        this.typeIndex=e
        this.typeFlag=this.types[e]
    },
    changeModeIndex(e){
        this.modeIndex=e
        this.modeFlag=this.modes[e]
    }
}
